package com.erp.fin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.erp.fin.dao.ReimInfoDao;
import com.erp.fin.domain.ReimInfoDO;
import com.erp.fin.service.ReimInfoService;

@Service
public class ReimInfoServiceImpl implements ReimInfoService {
	@Autowired
	private ReimInfoDao reimInfoDao;
	
	@Override
	public ReimInfoDO get(Long id){
		return reimInfoDao.get(id);
	}
	
	@Override
	public List<ReimInfoDO> list(Map<String, Object> map){
		return reimInfoDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return reimInfoDao.count(map);
	}
	
	@Override
	public int save(ReimInfoDO reimInfo){
		return reimInfoDao.save(reimInfo);
	}
	
	@Override
	public int update(ReimInfoDO reimInfo){
		return reimInfoDao.update(reimInfo);
	}
	
	@Override
	public int remove(Long id){
		return reimInfoDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return reimInfoDao.batchRemove(ids);
	}

	@Override
	public List<ReimInfoDO> findReimInfoByreimid(Long reimid){
		return reimInfoDao.findReimInfoByreimid(reimid);
	}

	@Override
	public List<ReimInfoDO> findProjectPrice(Long reimId) {
		return reimInfoDao.findProjectPrice(reimId);
	}

	@Override
	public List<ReimInfoDO> downloadTemplate(Map<String, Object> params) {
		return reimInfoDao.downloadTemplate(params);
	}

	@Override
	public Double getSalExpprice(Long projectId) {
		return reimInfoDao.getSalExpprice(projectId);
	}


}
